package org.lease.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class LoginDTO {
    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "Redis Key")
    @NotBlank(message = "Key 不能为空")
    private String captchaKey;

    @Schema(description = "用户输入的验证码")
    @NotBlank(message = "验证码不能为空")
    private String captchaCode;
}
